package com.per.mybootall.pojo;

import java.util.Date;
import java.util.List;

public class CommentProblem {
    private Long userid;
    private String username;
    /*问题标题*/
    private String title;
    /*问题内容*/
    private String content;
    /*是否已经回答:answer*/
    private boolean answered;
    /*问题创建时间*/
    private Date creattime;
    /*是否本人*/
    private boolean flag;

    //答案list
    private List<Answer> answerlist;

    public CommentProblem() {
    }

    public CommentProblem(Long userid, String username, String title, String content, boolean answered, Date creattime, boolean flag, List<Answer> answerlist) {
        this.userid = userid;
        this.username = username;
        this.title = title;
        this.content = content;
        this.answered = answered;
        this.creattime = creattime;
        this.flag = flag;
        this.answerlist = answerlist;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isAnswered() {
        return answered;
    }

    public void setAnswered(boolean answered) {
        this.answered = answered;
    }

    public Date getCreattime() {
        return creattime;
    }

    public void setCreattime(Date creattime) {
        this.creattime = creattime;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public List<Answer> getAnswerlist() {
        return answerlist;
    }

    public void setAnswerlist(List<Answer> answerlist) {
        this.answerlist = answerlist;
    }
}
